# $OpenBSD: Makefile,v 1.18 2015/03/16 18:07:49 naddy Exp $

COMMENT=	open source COBOL compiler

DISTNAME=	open-cobol-1.1
SHARED_LIBS +=	cob                  3.0      # .2.0
CATEGORIES=	lang
REVISION=	0

HOMEPAGE=	http://www.opencobol.org/

# compiler: GPL
# run-time library: LGPL
PERMIT_PACKAGE_CDROM=	Yes

MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=open-cobol/}

LIB_DEPENDS=	databases/db/v4 \
	 	devel/gmp

MODULES=	devel/gettext

WANTLIB=	c db gmp m ncurses

AUTOCONF_VERSION=	2.59
CONFIGURE_STYLE=autoconf
CONFIGURE_ENV=  LDFLAGS="-L${LOCALBASE}/lib" \
		CFLAGS="-I${LOCALBASE}/include" \
		CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/db4"

# Do not pick up kpathsea/getopt.h from print/texlive/base
CONFIGURE_ENV+=	ac_cv_header_kpathsea_getopt_h=no

.include <bsd.port.mk>
